package forms

type Pagination struct {
	Page     int32 `uri:"page" json:"page" binding:"omitempty,number,min=1"`
	PageSize int32 `uri:"page_size" json:"page_size" binding:"omitempty,number,min=1,max=100"`
}

type CreateOrderForm struct {
	Address string `json:"address" binding:"required"`
	Name    string `json:"name" binding:"required"`
	Mobile  string `json:"mobile" binding:"required,mobile"`
	Post    string `json:"post" binding:"required"`
}

type PaymentParams struct {
	Type    int32 `json:"payment_type" binding:"required,oneof=1 2"`
	OrderID int32 `json:"order_id" binding:"required,number,min=1"`
}

type ID struct {
	ID int32 `uri:"id" binding:"required,number,min=1"`
}
